From f050756e4101d4cb510dc395afe4cffff781acc3 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Fri, 25 Mar 2005 13:33:38 +0000 Subject: [PATCH] bitkeeper revision 1.1159.272.12 (42441332UkmiN7Ka9ysrPj9ZtPvXZg) Fix cleanup path for active writable pagetable. Reconnect page so that it gets cleaned up correctly. Signed-off-by: Christian Limpach --- xen/arch/x86/memory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/x86/memory.c b/xen/arch/x86/memory.c index 3961b37a89..6fb64a31fa 100644 --- a/xen/arch/x86/memory.c +++ b/xen/arch/x86/memory.c @@ -1765,6 +1765,11 @@ void ptwr_flush(const int which) (ENTRIES_PER_L1_PAGETABLE - i) * sizeof(l1_pgentry_t)); unmap_domain_mem(pl1e); ptwr_info[cpu].ptinfo[which].l1va = 0; + if ( (which == PTWR_PT_ACTIVE) && likely(!d->mm.shadow_mode) ) + { + pl2e = &linear_l2_table[ptwr_info[cpu].ptinfo[which].l2_idx]; + *pl2e = mk_l2_pgentry(l2_pgentry_val(*pl2e) | _PAGE_PRESENT); + } domain_crash(); } -- 2.30.2